/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/23/2010                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define ChiTietPhieuNhapHangResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class ChiTietPhieuNhapHangResult
    {
        #region fields
        private Int64 maPhieuNhapHang;
        private string maMatHang;
        private int maDonViTinh;
        private int soLuongNhap;
        private double giaNhap;
        private string curencyCode;
        private Boolean isAllowUpdate;
        #endregion fields

        #region properties
        public Boolean IsAllowUpdate
        {
            get { return this.isAllowUpdate; }
            set { this.isAllowUpdate = value; }
        }
        public string CurencyCode
        {
            get { return this.curencyCode; }
            set { this.curencyCode = value; }
        }
        /// <summary>
        /// Define MaPhieuNhapHang Property.
        /// </summary>
        public Int64 MaPhieuNhapHang
        {
            get { return this.maPhieuNhapHang; }
            set { this.maPhieuNhapHang = value; }
        }
        /// <summary>
        /// Define MaMatHang Property.
        /// </summary>
        public string MaMatHang
        {
            get { return this.maMatHang; }
            set { this.maMatHang = value; }
        }
        /// <summary>
        /// Define MaDonViTinh Property.
        /// </summary>
        public int MaDonViTinh
        {
            get { return this.maDonViTinh; }
            set { this.maDonViTinh = value; }
        }
        /// <summary>
        /// Define SoLuongNhap Property.
        /// </summary>
        public int SoLuongNhap
        {
            get { return this.soLuongNhap; }
            set { this.soLuongNhap = value; }
        }
        /// <summary>
        /// Define GiaNhap Property.
        /// </summary>
        public double GiaNhap
        {
            get { return this.giaNhap; }
            set { this.giaNhap = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for ChiTietPhieuNhapHangResultResult Object.
        /// </summary>
        public ChiTietPhieuNhapHangResult()
        {
            this.curencyCode = string.Empty;
            this.maPhieuNhapHang = int.MinValue;
            this.maMatHang = string.Empty;
            this.maDonViTinh = int.MinValue;
            this.soLuongNhap = int.MinValue;
            this.giaNhap = double.MinValue;
            this.isAllowUpdate = true;
        }
        /// <summary>
        /// Define constructor for ChiTietPhieuNhapHangResultResult Object.
        /// </summary>
        public ChiTietPhieuNhapHangResult(int maPhieuNhapHang,
                    string maMatHang,
                    int maDonViTinh,
                    int soLuongNhap,
                    double giaNhap)
        {
            this.maPhieuNhapHang = maPhieuNhapHang;
            this.maMatHang = maMatHang;
            this.maDonViTinh = maDonViTinh;
            this.soLuongNhap = soLuongNhap;
            this.giaNhap = giaNhap;
        }
        #endregion constructor
    }
}